<?php
/**
 *
 * @author  Devret
 * @mail    461313128@qq.com
 * @create  2020-02-18 16:46
 * https://sixcloud.co/
 * https://gitee.com/devret/AuthorizationSystem.git
 */

define('ROOT_PATH_API',$_SERVER['DOCUMENT_ROOT']);
include(ROOT_PATH_API."/" . "public/service/api/AddSqService.php");

$type = $_GET['type'];
$authorizer = $_GET['zr'];
$auth = $_GET['jqr'];
$km = $_GET['km'];
$AddSqService = new AddSqService();
switch ($type){
    case "add":
        die($AddSqService->addSqByKm($authorizer,$auth,$km));
        break;
    case "query":die($AddSqService->queryByAuth($auth)); break;
    default : die(OperateResult::out(false, "type参数错误", ""));
}
?>


